﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SchemaRepositoryDsView.cs" company="Data Ductus Malmö">
//   (c) 2010 - 2012 Data Ductus Malmö AB
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace DataDuctus.Snmp.Persistor.Core.Schema
{
  using System.Collections.Generic;

  /// <summary>
  /// The schema repository ds view.
  /// </summary>
  public class SchemaRepositoryDsView : SchemaRepositoryDsTable
  {
    #region Public Properties

    /// <summary>
    /// Sets the columns.
    /// </summary>
    public new IEnumerable<ISchemaItem> Columns
    {
      set
      {
        this.MyColumns.Clear();

        foreach (ISchemaItem item in value)
        {
          this.MyColumns.Add(item);
        }
      }
    }

    /// <summary>
    /// Sets the name.
    /// </summary>
    public new string Name
    {
      set
      {
        base.Name = value;
      }
    }

    /// <summary>
    /// Sets the namespace.
    /// </summary>
    public new string Namespace
    {
      set
      {
        base.Namespace = value;
      }
    }

    #endregion
  }
}